package cn.ztuo.bitrade.service;

import cn.ztuo.bitrade.dao.FunctionSwitchDao;
import cn.ztuo.bitrade.entity.FunctionSwitch;
import cn.ztuo.bitrade.service.Base.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: Xiazt
 * @date: 2020-04-22 10:30
 */
@Service
public class FunctionSwitchService extends BaseService<FunctionSwitch> {

    @Autowired
    private FunctionSwitchDao functionSwitchDao;

    public List<FunctionSwitch> findAll(){
        return functionSwitchDao.findAll();
    }

    public FunctionSwitch findByFunctionName(String functionName){
        return functionSwitchDao.findByFunctionName(functionName);
    }

}
